package hc.uco

class Usuario {

	String nome
	String login
	String senha
	String email
	Boolean admin
	String crm
	String cargo
	
	static constraints = {
		nome(length:5..20,blank: false)
		login(length:4..8,unique:true,blank: false)
		senha(length:5..8,blank: false)
		email(length:5..40, email: true,blank: false)
		crm(maxLength: 10, blank: false)
		cargo(maxLength: 20, blank: false)
		admin()
	}
	
}
